const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token, // token的快捷访问
  // 这两个不加会报错 但是没找到具体原因
  avatar: state => state.app.avatar,
  name: state => state.user.userInfo.username, // 快捷访问用户名称
  userId: state => state.user.userInfo.userId, // 快捷访问用户Id,
  staffPhoto: state => state.user.userInfo.staffPhoto, // 建立员工头像的快捷访问
  companyId: state => state.user.userInfo.companyId, // 建立公司Id的快捷访问
  routes: state => state.permission.routes // 建立动态路由列表的快捷访问
}
export default getters
